package juc.design.guardedObject.TestGuardedObject3;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.people")
class People extends Thread{
    @Override
    public void run() {
// 收信
        GuardedObjectV3 guardedObjectV3 = Mailboxes.createGuardedObjectV3();
        log.debug("开始收信 id:{}", guardedObjectV3.getId());
        Object mail = guardedObjectV3.get(5000);
        log.debug("收到信 id:{}, 内容:{}", guardedObjectV3.getId(), mail);
    }
}
